package ooday03;

public class InterfaceDemo {
    public static void main(String[] args) {
   Aoo a=new Aoo();
   a.show();
   a.test();
   Coo b=new Coo();
   b.say();
   b.show();
   b.test();

    }
}








interface Inter{
    void show();
    void test();
}
//接口的实现
interface Inter1 extends Inter{
    void show();
    void test();
}
class Aoo implements Inter1{
    public void show(){}//重写接口中的方法，必须加public
    public void test(){}
}
interface Inter2{
    void show();
}
interface Inter3{
    void test();
}
abstract class Boo{
    abstract void say();
}
class Coo extends Boo implements Inter2,Inter3{
    public void show(){}
    public void test(){}
        void say(){}

}




